XendDomainInfo.py, XendDomain.py:
Disable shutdown timeout for suspend.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
if reason == 'halt':
reason = 'poweroff'
val = dominfo.shutdown(reason, key=key)
- if reason != 'sysrq':
+ if not reason in ['suspend', 'sysrq']:
self.domain_shutdowns()
return val
if self.channel:
msg = messages.packMsg(msgtype, extra)
self.channel.writeRequest(msg)
- if reason != 'sysrq':
+ if not reason in ['suspend', 'sysrq']:
self.shutdown_pending = {'start':time.time(), 'reason':reason,
'key':key}